Просмотр исходного кода

try to get rid of usless warnings

luis daniel lucio quiroz 11 лет назад
Родитель
Сommit
b2a3583975
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      resources/functions.php

+ 2 - 2
resources/functions.php

@@ -728,7 +728,7 @@ function format_string ($format, $data) {
 
 
 //get the format and use it to format the phone number
 //get the format and use it to format the phone number
 	function format_phone($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
 			$_SESSION["format_phone_array"] = ""; //clear the menu
 			global $domain_uuid, $db;
 			global $domain_uuid, $db;
 			$sql = "select * from v_vars ";
 			$sql = "select * from v_vars ";
@@ -959,4 +959,4 @@ function number_pad($number,$n) {
 	return str_pad((int) $number,$n,"0",STR_PAD_LEFT);
 	return str_pad((int) $number,$n,"0",STR_PAD_LEFT);
 }
 }
 
 
-?>
+?>