1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +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

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