Needs review
Project:
Google Fonts
Version:
7.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2011 at 17:27 UTC
Updated:
13 Sep 2018 at 15:13 UTC
Jump to comment: Most recent
Strict warning: Only variables should be passed by reference in google_fonts_admin_settings_form() (line 81 of /opt/lampp/htdocs/d7_animare/sites/all/modules/google_fonts/google_fonts.admin.inc).
Strict warning: Only variables should be passed by reference in google_fonts_admin_settings_form() (line 119 of /opt/lampp/htdocs/d7_animare/sites/all/modules/google_fonts/google_fonts.admin.inc).
Comments
Comment #1
BarisW commentedNot sure what this is, but I cannot reproduce it. At the line numbers you give (81 and 119) no variables are passed by reference. Do you still get this error? If so: could you please clarify what system you are using?
Comment #2
slayne40 commentedHy,
Due to PHP 5.3, it's more strict for variable pass by reference.
line 119 :
PHP syntax for array_shift :
mixed array_shift ( array &$array )The $array variable need to pass by reference.
Replace ligne 119 by :
Comment #3
TMHD commentedHi
I replaced line 119, and that worked fine , but what should I replace line 81 with ?
Comment #4
blacksnipeNo idea if you solved it, but it's actually kind of the same problem of reference.
replace rule 81:
with:
cheers,
A.
Comment #5
druplr commentedThank you slayne40. Warning is gone for me.