Hi,
I'm packaging rtgui to include it into Debian GNU/Linux distribution
(see:http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563116 for details)
The Debian intallation process delivers an uncofigured config.inc.php file
including $watchdir="" to be manually configured by users.
It would be nice if you add a directory check before calling
disk-total-space function to avoid PHP warnings.
ie: On unconfigured $watchdir you get:
Warning: disk_total_space() [function.disk-total-space]: No such file or
directory in /usr/share/rtgui/www/index.php on line 90
Warning: Division by zero in /usr/share/rtgui/www/index.php on line 90
Warning: disk_total_space() [function.disk-total-space]: No such file or
directory in /usr/share/rtgui/www/index.php on line 91
Warning: disk_total_space() [function.disk-total-space]: No such file or
directory in /usr/share/rtgui/www/index.php on line 91
Warning: Division by zero in /usr/share/rtgui/www/index.php on line 91
Disk Free: / (0%)
Thanks for your work on rtGui.
Original issue reported on code.google.com by kocin...@gmail.com on 10 Jan 2010 at 5:46
Original issue reported on code.google.com by
kocin...@gmail.com
on 10 Jan 2010 at 5:46