diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-28 19:30:41 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-28 19:30:41 +0000 |
commit | d482264b6af8598ce50677ac6a8f781e219b7d6f (patch) | |
tree | 5bff034467e4ed8e1b1fe442c7de643f112da7f7 /functions/calendar_functions.php | |
parent | fc3e1a8590046c858b2ddebdf6c43df8240e9a97 (diff) | |
download | phpicalendar-d482264b6af8598ce50677ac6a8f781e219b7d6f.tar.gz phpicalendar-d482264b6af8598ce50677ac6a8f781e219b7d6f.tar.bz2 phpicalendar-d482264b6af8598ce50677ac6a8f781e219b7d6f.zip |
fix misc bugs; rewrite some places where warnings squelched with @; require php5.1 or greater
Diffstat (limited to 'functions/calendar_functions.php')
-rw-r--r-- | functions/calendar_functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/calendar_functions.php b/functions/calendar_functions.php index 8f02bd7..ef423b6 100644 --- a/functions/calendar_functions.php +++ b/functions/calendar_functions.php @@ -73,9 +73,9 @@ function availableCalendars($username, $password, $cal_filename, $admin = false) if ($find_all || $phpiCal_config->recursive_path == 'yes' || $phpiCal_config->support_ical == 'yes') { // Open the directory. $dir_handle = opendir($search_path) - or die(error("cal fn 78:".sprintf($lang['l_error_path'], $search_path), implode(',', $cal_filename))); + or die(error(sprintf($lang['l_error_path'], $search_path), implode(',', $cal_filename))); if ($dir_handle === false) - die(error(" cal fn 80:".sprintf($lang['l_error_path'], $search_path), implode(',', $cal_filename))); + die(error(sprintf($lang['l_error_path'], $search_path), implode(',', $cal_filename))); // Add each file in the directory that does not begin with a dot. while (false !== ($file = readdir($dir_handle))) { |