From 347b38db4efdb1d2881a5093e8a52ee2c339f162 Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Tue, 24 Sep 2019 12:12:15 -0600 Subject: [PATCH] Update ringbacks.php (#4643) --- resources/classes/ringbacks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/classes/ringbacks.php b/resources/classes/ringbacks.php index 40efc23974..ede5718705 100644 --- a/resources/classes/ringbacks.php +++ b/resources/classes/ringbacks.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2016-2018 + Portions created by the Initial Developer are Copyright (C) 2016-2019 the Initial Developer. All Rights Reserved. Contributor(s): @@ -126,7 +126,7 @@ if (!class_exists('ringbacks')) { } //recordings - if (sizeof($this->recordings_list) > 0) { + if (is_array($this->recordings_list) && sizeof($this->recordings_list) > 0) { $select .= " "; foreach ($this->recordings_list as $recording_value => $recording_name) { $select .= " \n"; @@ -187,4 +187,4 @@ if (!class_exists('ringbacks')) { } } -?> \ No newline at end of file +?>