Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
copyprevention-3429625
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
copyprevention-3429625
Commits
e32fdae9
Commit
e32fdae9
authored
11 years ago
by
Andrew Berezovsky
Browse files
Options
Downloads
Patches
Plain Diff
Fixed [
#1991668
] - warning on array_shift().
parent
9c4cf711
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
copyprevention.module
+2
-1
2 additions, 1 deletion
copyprevention.module
with
2 additions
and
1 deletion
copyprevention.module
+
2
−
1
View file @
e32fdae9
...
@@ -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
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment