1
0
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:
Cameron 2018-07-12 13:47:51 -07:00 committed by GitHub
commit fde7cf2815
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))
{