Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.

Strict Standards Warning #76

Closed
jgalea opened this issue Aug 3, 2013 · 1 comment
Closed

Strict Standards Warning #76

jgalea opened this issue Aug 3, 2013 · 1 comment
Assignees

Comments

@jgalea
Copy link

jgalea commented Aug 3, 2013

This is quite a minor bug.
On line #209 in wpthumb.php, the reset and explode functions need to be separated onto two lines.

The problem is that reset will attempt to take the function explode by reference and throw:
*Strict Standards:* Only variables should be passed by reference

This worked for me:

Before:

$this->_file_path = reset( explode( '?', $this->file_path ) );

After:

$exploded = explode( '?', $this->file_path );
$this->_file_path = reset( $exploded );
@ghost ghost assigned joehoyle Aug 5, 2013
@joehoyle
Copy link
Member

joehoyle commented Aug 7, 2013

Fixed in #77

@joehoyle joehoyle closed this as completed Aug 7, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants