aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-05-23 02:33:46 -0700
committerzotlabs <mike@macgirvin.com>2018-05-23 02:33:46 -0700
commitafb29176a4e301d4e4b247e0d28084e2936c8899 (patch)
tree18bd63eff1df5ad7e16b18a26431c4f93b6a1c09 /include/text.php
parent76d8e59e9b9fff557bb987e9f9621e5b6d8b7c0c (diff)
downloadvolse-hubzilla-afb29176a4e301d4e4b247e0d28084e2936c8899.tar.gz
volse-hubzilla-afb29176a4e301d4e4b247e0d28084e2936c8899.tar.bz2
volse-hubzilla-afb29176a4e301d4e4b247e0d28084e2936c8899.zip
deal with db failure gracefully
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php
index aafba2168..34063cdd7 100644
--- a/include/text.php
+++ b/include/text.php
@@ -572,7 +572,7 @@ function item_message_id() {
$r = q("SELECT id FROM item WHERE mid = '%s' LIMIT 1",
dbesc($mid));
- if(count($r))
+ if($r)
$dups = true;
} while($dups == true);
@@ -593,7 +593,7 @@ function photo_new_resource() {
$r = q("SELECT id FROM photo WHERE resource_id = '%s' LIMIT 1",
dbesc($resource));
- if(count($r))
+ if($r)
$found = true;
} while($found === true);