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

jrglasgow’s picture

Status: Needs review » Fixed

ok, this change had been mode and committed, look for it in the next release

eMPee584’s picture

lol 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().. ;)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.