|
From: <var...@us...> - 2022-01-20 15:12:54
|
Revision: 10915
http://sourceforge.net/p/phpwiki/code/10915
Author: vargenau
Date: 2022-01-20 15:12:52 +0000 (Thu, 20 Jan 2022)
Log Message:
-----------
replace array_search by in_array
Modified Paths:
--------------
trunk/lib/FileFinder.php
Modified: trunk/lib/FileFinder.php
===================================================================
--- trunk/lib/FileFinder.php 2022-01-20 15:11:56 UTC (rev 10914)
+++ trunk/lib/FileFinder.php 2022-01-20 15:12:52 UTC (rev 10915)
@@ -216,7 +216,7 @@
{
$dir = $this->slashifyPath($dir);
// remove duplicates
- if ($i = array_search($dir, $this->_path) !== false) {
+ if ($i = in_array($dir, $this->_path)) {
array_splice($this->_path, $i, 1);
}
array_unshift($this->_path, $dir);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|