]> git.p6c8.net - jirafeau_project.git/commitdiff
[BUGFIX] Remove invalid regex Warning
authorJerome Jutteau <mojo@couak.net>
Tue, 1 May 2018 10:44:31 +0000 (12:44 +0200)
committerJerome Jutteau <mojo@couak.net>
Fri, 11 May 2018 21:57:50 +0000 (23:57 +0200)
Signed-off-by: Jerome Jutteau <mojo@couak.net>
lib/functions.php

index e23727413f7d4c35efb36c6479c852411d5c5142..8af38010d0c6fa0c40e43b29d6983f988c07d7ad 100644 (file)
@@ -597,7 +597,7 @@ function jirafeau_admin_list($name, $file_hash, $link_hash)
                 }
 
                 /* 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']) {

patrick-canterino.de