wang jun 3 tahun lalu
induk
melakukan
35ef82410d
1 mengubah file dengan 7 tambahan dan 7 penghapusan
  1. 7 7
      application/index/logic/companylogic.php

+ 7 - 7
application/index/logic/companylogic.php

@@ -173,15 +173,15 @@ class companylogic extends baselogic
         if (isset($info['enterprisephoto']) && is_string($info['enterprisephoto'])) {
             if (!empty($info['enterprisephoto'])) {
                 $jsonArr = json_decode($info['enterprisephoto'], true);
-                $pregstr = '/^(http:\/\/*)|(https:\/\/*)/';
+                /*$pregstr = '/^(http:\/\/*)|(https:\/\/*)/';
                 foreach ($jsonArr as $key => $value) {
-                    $matchResult = preg_match($pregstr, $value, $matchArr);
-                    if ($matchResult) {
-                        foreach ($matchArr as $mkey => $mvalue) {
-                            $jsonArr[$key] = str_replace($mvalue, "", $value);
-                        }
-                    }
+                $matchResult = preg_match($pregstr, $value, $matchArr);
+                if ($matchResult) {
+                foreach ($matchArr as $mkey => $mvalue) {
+                $jsonArr[$key] = str_replace($mvalue, "", $value);
                 }
+                }
+                }*/
                 $info['enterprisephoto'] = $jsonArr;
             }
         }