Jasig/phpCAS — Issue #2: "Undefined index" notice after calling phpCAS::setDebug(false) for v1.2.2
Author: ADmad
Created: 2011-10-21 06:55:47+00:00
State: open

Calling `phpCAS::setDebug(false)` unsets `$PHPCAS_DEBUG['filename']` which in turn causes "undefined index" notice for line `if ($PHPCAS_DEBUG['filename']) {` in the `phpCAS::log()` function.

Replacing line `unset($PHPCAS_DEBUG['filename'])` with `$PHPCAS_DEBUG['filename'] = FALSE;` in the `phpCAS::setDebug()` function should fix the issue.

I wasn't sure for which branch to make the fix hence didn't provide a patch.