mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Make sure the item passed is a string!
This commit is contained in:
parent
f4bca05a87
commit
4824d8574d
@ -607,6 +607,8 @@ function gather_altq_queue_stats($dont_return_root_queues) {
|
||||
* Useful for finding paths and stripping file extensions.
|
||||
*/
|
||||
function reverse_strrchr($haystack, $needle) {
|
||||
if (!is_string($haystack))
|
||||
return;
|
||||
return strrpos($haystack, $needle) ? substr($haystack, 0, strrpos($haystack, $needle) +1 ) : false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user