From 1359f685b5e3874ffe1271d1d2ccc26accb68a4e Mon Sep 17 00:00:00 2001 From: luis daniel lucio quiroz Date: Wed, 25 Jun 2014 23:40:42 +0000 Subject: [PATCH] try to get rid of usless warnings --- resources/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index 433cf5ad78..b2b6c19078 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -728,7 +728,7 @@ function format_string ($format, $data) { //get the format and use it to format the phone number function format_phone($phone_number) { - if (strlen($_SESSION["format_phone_array"]) == 0) { + if ((is_string($_SESSION["format_phone_array"])) && (strlen($_SESSION["format_phone_array"]) == 0)) { $_SESSION["format_phone_array"] = ""; //clear the menu global $domain_uuid, $db; $sql = "select * from v_vars "; @@ -959,4 +959,4 @@ function number_pad($number,$n) { return str_pad((int) $number,$n,"0",STR_PAD_LEFT); } -?> \ No newline at end of file +?>