From 3dcce8d987678e9f20a9b7eb04438321a5c65975 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 19 Nov 2013 02:39:43 +0100 Subject: [PATCH] Don't miss integer 0 values from find() --- plugins/OStatus/classes/FeedSub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/OStatus/classes/FeedSub.php b/plugins/OStatus/classes/FeedSub.php index aad7ec2110..8418e37a49 100644 --- a/plugins/OStatus/classes/FeedSub.php +++ b/plugins/OStatus/classes/FeedSub.php @@ -249,7 +249,7 @@ class FeedSub extends Managed_DataObject $fs = new FeedSub(); // the "" empty string check is because we historically haven't saved unsubscribed feeds as NULL $fs->whereAdd('sub_end IS NOT NULL AND sub_end!="" AND sub_end < NOW() - INTERVAL 1 day'); - if ($fs->find() === false) { + if (!$fs->find()) { // find can be both false and 0, depending on why nothing was found throw new NoResultException($fs); } return $fs; -- 2.39.5