summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgbasefuncs.inc.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php
index cd4b2713..57933e86 100644
--- a/web/lib/pkgbasefuncs.inc.php
+++ b/web/lib/pkgbasefuncs.inc.php
@@ -852,12 +852,11 @@ function pkgbase_user_notify($uid, $base_id) {
$q.= " AND PackageBaseID = " . $dbh->quote($base_id);
$result = $dbh->query($q);
- if ($result->fetch(PDO::FETCH_NUM)) {
- return true;
- }
- else {
+ if (!$result) {
return false;
}
+
+ return ($result->fetch(PDO::FETCH_NUM) > 0);
}
/**