Class APCCache breaks application due to E_WARING

Issue #3 resolved
Nazariy Slyusarchuk
created an issue

There are two methods that throw E_WARNING in class.apccache.php. The problem is unexisting key 'cache_list' in $apc_user_caches. To fix this issue you have to apply isset method on lines 80 and 98. In my oppinin you should remove comparision if greater than 0, becouse it is unnecissary and php by default inside if statement count empty array as false. So line 80 and 98 could look like this: {{{

!php

if(isset($apc_user_caches['cache_list']) && $apc_user_caches['cache_list']) { }}}

Comments (1)

  1. Log in to comment