Skip to content
Snippets Groups Projects
Commit e32fdae9 authored by Andrew Berezovsky's avatar Andrew Berezovsky
Browse files

Fixed [#1991668] - warning on array_shift().

parent 9c4cf711
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,8 @@ function copyprevention_preprocess_html(&$vars) { ...@@ -53,7 +53,8 @@ function copyprevention_preprocess_html(&$vars) {
* Implements hook_page_build(). * Implements hook_page_build().
*/ */
function copyprevention_page_build(&$page) { function copyprevention_page_build(&$page) {
$region = array_shift(element_children($page)); $children = element_children($page);
$region = array_shift($children);
$copyprevention_images_search = array_filter(variable_get('copyprevention_images_search', array())); $copyprevention_images_search = array_filter(variable_get('copyprevention_images_search', array()));
if (array_key_exists('httpheader', $copyprevention_images_search)) { if (array_key_exists('httpheader', $copyprevention_images_search)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment