diff --git a/e107_plugins/download/handlers/download_class.php b/e107_plugins/download/handlers/download_class.php index cbe16f6e7..02fabb3e8 100644 --- a/e107_plugins/download/handlers/download_class.php +++ b/e107_plugins/download/handlers/download_class.php @@ -563,7 +563,8 @@ class download $ns = e107::getRender(); $sc = $this->sc; - $count = $sc->getVars(); + // @see: #3056 fixes fatal error in case $sc is empty (what happens, if no record was found) + $count = empty($sc) ? 0 : $sc->getVars(); if(empty($count)) {