]> git.mxchange.org Git - friendica.git/blobdiff - include/template_processor.php
show real profile link location on hover
[friendica.git] / include / template_processor.php
index 459ffb2d11ab426a8f94bacb4dca50094d687727..dc5c24de3ee20b5825de5fa8fa340e070b64274f 100644 (file)
                        
                        $a = get_app();
                        $this->lang=array();
-                       foreach ($a->strings as $k=>$v){
-                               $k =  preg_replace("/[^a-z0-9-]/", "", str_replace(" ","-", strtolower($k)));
-                               $this->lang[$k] = $v;
+                       if(is_array($a->strings) && count($a->strings)) {
+                               foreach ($a->strings as $k=>$v){
+                                       $k =  preg_replace("/[^a-z0-9-]/", "", str_replace(" ","-", strtolower($k)));
+                                       $this->lang[$k] = $v;
+                               }
                        }
                        return $this->lang;
                }