This is part of a drupal module and I am getting this error:
Strict warning: Only variables should be passed by reference in customheaderimage_get_last_argument()
My code is
function customheaderimage_get_last_argument() {
return customheaderimage_dashtoslash(array_pop(explode('/', $_GET['q'])));
}
q contains a value like "admin/configure/customheaderimage/edit/node--2" the dashtoslash changes the -- to a slash with str_replace. so all of those chained functions return something like 'node/2' and it currently does and works. Just throws this warning
How do I resolve this warning message it does this in a few places?