Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2008 at 13:42 UTC
Updated:
15 Nov 2008 at 15:12 UTC
That line does a boolean comparison on an object that may not exist. Either there needs to be a
else {
$file = NULL;
}before *or* it should say if (isset($file)) {
Comments
Comment #1
jrglasgow commentedok, this change had been mode and committed, look for it in the next release
Comment #2
eMPee584 commentedlol now that again is overkill because in these assignments $file is not the result of a function that can fail with return value of NULL or so.. also, both expressions (isset() && boolean cmparison) can be collapsed to empty().. ;)
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.