mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 05:02:02 +02:00
Merge pull request #3267 from SimSync/fix_3056
Fixes #3056 Fixes the fatal error in case no records were found
This commit is contained in:
commit
fde7cf2815
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user