Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2018-09-04 11:38:41 +0300
committersualko <klaus@jsxc.org>2018-09-04 11:38:41 +0300
commite5214aa68c39c0ebeb53be2a3b1c8cdb2797b7eb (patch)
tree7c0e8b71d1a07c2397165c73a84a3e7c7fdd0de8
parent7ea419c3bfd3c075d685dae9a5a8fe269424fcf6 (diff)
fix countable error (fix jsxc/jsxc#686)
-rw-r--r--lib/newcontentcontainer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/newcontentcontainer.php b/lib/newcontentcontainer.php
index e2de31c..df70d01 100644
--- a/lib/newcontentcontainer.php
+++ b/lib/newcontentcontainer.php
@@ -33,6 +33,6 @@ class NewContentContainer
public function getCount()
{
- return count(self::$stanzas);
+ return is_array(self::$stanzas)? count(self::$stanzas) : 0;
}
}