diff options
author | sualko <klaus@jsxc.org> | 2018-09-04 11:38:41 +0300 |
---|---|---|
committer | sualko <klaus@jsxc.org> | 2018-09-04 11:38:41 +0300 |
commit | e5214aa68c39c0ebeb53be2a3b1c8cdb2797b7eb (patch) | |
tree | 7c0e8b71d1a07c2397165c73a84a3e7c7fdd0de8 | |
parent | 7ea419c3bfd3c075d685dae9a5a8fe269424fcf6 (diff) |
fix countable error (fix jsxc/jsxc#686)
-rw-r--r-- | lib/newcontentcontainer.php | 2 |
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; } } |