Revision 81868072
Added by Scott Ullrich over 14 years ago
etc/inc/system.inc | ||
---|---|---|
615 | 615 |
fclose($fd); |
616 | 616 |
|
617 | 617 |
// Ensure that the log directory exists |
618 |
if(!isdir("{$g['dhcpd_chroot_path']}/var/run")) |
|
618 |
if(!is_dir("{$g['dhcpd_chroot_path']}/var/run"))
|
|
619 | 619 |
exec("/bin/mkdir -p {$g['dhcpd_chroot_path']}/var/run"); |
620 | 620 |
|
621 | 621 |
// Are we logging to a least one remote server ? |
Also available in: Unified diff
use is_dir(). Sometimes php lack of uniform function names can be annoying.