Hello all.
I use websvn to publish the sources of my project.
I use a LAMP server, and php error reporting is configured
with E_NOTICES and
E_STRICT.
I have made a small change to remove a couple of
notifications :
*PHP Notice: Undefined offset: 1 in
/home/heberg/bildo/www/websvn/listing.php on line 109*
*PHP Notice: Undefined offset: 1 in
/home/heberg/bildo/www/websvn/listing.php on line 138*
--------
In file /home/heberg/bildo/www/websvn/listing.php line 109
Old: if ( !strcmp($subs[$level+1]."/", $file) ||
!strcmp($subs[$level+1], $file))
New: if ( isset($subs[$level+1]) && (
!strcmp($subs[$level+1]."/", $file) ||
!strcmp($subs[$level+1], $file)))
In file /home/heberg/bildo/www/websvn/listing.php line 138
Old: if ( !strcmp($subs[$level + 1]."/", $file) )
New: if ( isset($subs[$level+1]) &&
!strcmp($subs[$level + 1]."/", $file))
--------
It is also useful for peoples like us who manage a web
server, because if you
have too much notices or warning in logs, it is hard to see
which ones are
importants or no.
Thanks,
Andre Rodier
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe websvn.tigris.org
For additional commands, e-mail: dev-help websvn.tigris.org
|