summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-08 09:54:44 +0300
committerAndrew Dolgov <[email protected]>2021-02-08 09:54:44 +0300
commit27872600239a33ecd7b00abe87393757c6bf7ce5 (patch)
treee4dc024612e89779df0ec273d0c2a9a67a14badf /init.php
parentfae747ce31a731fbf9280b35cd467203afd03064 (diff)
fix warning
Diffstat (limited to 'init.php')
-rwxr-xr-xinit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index cf5ec88..6abb435 100755
--- a/init.php
+++ b/init.php
@@ -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"];