mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +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:
@@ -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))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user