summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-06-28 10:34:51 -0400
committerSolomon Peachy <pizza@shaftnet.org>2019-06-28 10:34:51 -0400
commit349cb4324083f27a9a5e080b384c9763c854fe96 (patch)
tree216c078194a11324c4a6f34f8b5075b5f51cd6d6
parent99126f35031dc9f63ec29dc114ed7c1e9c57e465 (diff)
downloadpo-349cb4324083f27a9a5e080b384c9763c854fe96.tar.gz
po-349cb4324083f27a9a5e080b384c9763c854fe96.tar.bz2
po-349cb4324083f27a9a5e080b384c9763c854fe96.zip
[fix] Another PHP7-related warning
-rw-r--r--src/include/common.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/common.php b/src/include/common.php
index 9be1778..b0ae170 100644
--- a/src/include/common.php
+++ b/src/include/common.php
@@ -1627,6 +1627,7 @@ function display_folders($database, $folder_id, $owner_user_id, $event = FALSE,
order by $sql_query_order_by_string");
$all_folders = pg_fetch_all($all_folders);
+ if ($all_folders == FALSE) $all_folders = array();
$num_of_folders = sizeof($all_folders);
$display_extra = (($po_user['id'] == $owner_user_id) || ($po_user['type'] == PO_USER_TYPE_ADMIN));