Closed (fixed)
Project:
Views Bulk Operations (VBO)
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2008 at 03:10 UTC
Updated:
20 Jun 2008 at 08:09 UTC
warning: strpos() [function.strpos]: Empty delimiter in C:\wamp\www\risweb\sites\all\modules\views_bulk_operations\views_bulk_operations.module on line 69.
It seems that one of the $urls that is being passed to the strpos function is empty.
The current code is (from lines 64 to 73):
$path = 'admin/build/views/'.$view_name.'/operations';
}
else {
$urls = views_get_all_urls();
foreach ($urls as $key => $url) {
if (strpos($_GET['q'], $url) !== FALSE) {
$view_name = $key;
break;
}
}
a very minor change to (same line numbers as above):
$path = 'admin/build/views/'.$view_name.'/operations';
}
else {
$urls = views_get_all_urls();
foreach ($urls as $key => $url) {
if (!empty($url) && strpos($_GET['q'], $url) !== FALSE) {
$view_name = $key;
break;
}
}
eliminates the error. Not sure if this will screw up the intended behaviour or not.
Dave
Comments
Comment #1
infojunkieAlready fixed in -dev.