diff options
author | Andrew Dolgov <[email protected]> | 2021-02-08 09:54:44 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-08 09:54:44 +0300 |
commit | 27872600239a33ecd7b00abe87393757c6bf7ce5 (patch) | |
tree | e4dc024612e89779df0ec273d0c2a9a67a14badf /init.php | |
parent | fae747ce31a731fbf9280b35cd467203afd03064 (diff) |
fix warning
Diffstat (limited to 'init.php')
-rwxr-xr-x | init.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -405,7 +405,7 @@ class Af_Img_Phash extends Plugin { if (DB_TYPE == "pgsql" && true !== IMG_HASH_SQL_FUNCTION) { try { $res = $this->pdo->query("select 'unique_1bits'::regproc"); } catch (PDOException $e) { ; } - if (!$res || !$res->fetch()) return $article; + if (empty($res) || !$res->fetch()) return $article; } $owner_uid = $_SESSION["uid"]; |