]> git.p6c8.net - jirafeau.git/blobdiff - lib/functions.php
[BUGFIX] Remove invalid regex Warning
[jirafeau.git] / lib / functions.php
index e23727413f7d4c35efb36c6479c852411d5c5142..8af38010d0c6fa0c40e43b29d6983f988c07d7ad 100644 (file)
@@ -597,7 +597,7 @@ function jirafeau_admin_list($name, $file_hash, $link_hash)
                 }
 
                 /* Filter. */
                 }
 
                 /* Filter. */
-                if (!empty($name) && !preg_match("/$name/i", jirafeau_escape($l['file_name']))) {
+                if (!empty($name) && !@preg_match("/$name/i", jirafeau_escape($l['file_name']))) {
                     continue;
                 }
                 if (!empty($file_hash) && $file_hash != $l['md5']) {
                     continue;
                 }
                 if (!empty($file_hash) && $file_hash != $l['md5']) {

patrick-canterino.de