mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #2322 set to 0 if null
some values being used in $result are null
This commit is contained in:
@@ -198,7 +198,7 @@ function pwg_db_changes()
|
|||||||
|
|
||||||
function pwg_db_num_rows($result)
|
function pwg_db_num_rows($result)
|
||||||
{
|
{
|
||||||
return $result->num_rows;
|
return $result->num_rows ?? 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function pwg_db_fetch_array($result)
|
function pwg_db_fetch_array($result)
|
||||||
|
|||||||
Reference in New Issue
Block a user