Commit e5e6b483 authored by merlinofchaos's avatar merlinofchaos

104854: Fixed $arg at the beginning of the URL *again*

parent 2f6f358c
......@@ -103,7 +103,7 @@ function views_reset_inline_args_cache($locale = 'en') {
while ($view = db_fetch_object($result)) {
// Skip over any non-argument views
if (strrpos($view->url, '$arg') == FALSE) {
if (strrpos($view->url, '$arg') === FALSE) {
continue;
}
// unpack the array
......@@ -128,7 +128,7 @@ function views_reset_inline_args_cache($locale = 'en') {
foreach ($default_views as $name => $view) {
if ($view->page && !$used[$name] && ($views_status[$name] == 'enabled' || (!$view->disabled && $views_status[$name] != 'disabled'))) {
if (strrpos($view->url, '$arg')) {
if (strrpos($view->url, '$arg') !== FALSE) {
$views_with_inline_args[$view->name] = $view;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment