1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Fixes #3056 Fixes the fatal error in case no records were found

This commit is contained in:
Achim Ennenbach
2018-07-12 12:48:01 +02:00
parent 4c692150fe
commit 2b2737ae41

View File

@@ -563,7 +563,8 @@ class download
$ns = e107::getRender(); $ns = e107::getRender();
$sc = $this->sc; $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)) if(empty($count))
{ {