From c94f1b6ff8a2a82fa0d6ad725144c5380fd0df7b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 6 Feb 2021 17:38:24 +0300 Subject: fix some more warnings reported by phpstan --- classes/labels.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'classes/labels.php') diff --git a/classes/labels.php b/classes/labels.php index 1f27ee25c..786091650 100644 --- a/classes/labels.php +++ b/classes/labels.php @@ -196,6 +196,8 @@ class Labels $sth->execute([$caption, $owner_uid, $fg_color, $bg_color]); $result = $sth->rowCount(); + } else { + $result = false; } if (!$tr_in_progress) $pdo->commit(); -- cgit v1.2.3