[Phpfreechat-svn] SF.net SVN: phpfreechat: [510] trunk/src/containers/file.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-05-27 10:29:34
|
Revision: 510 Author: kerphi Date: 2006-05-27 03:29:24 -0700 (Sat, 27 May 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=510&view=rev Log Message: ----------- fix some php warnings when directories doesn't exists Modified Paths: -------------- trunk/src/containers/file.class.php Modified: trunk/src/containers/file.class.php =================================================================== --- trunk/src/containers/file.class.php 2006-05-26 20:56:29 UTC (rev 509) +++ trunk/src/containers/file.class.php 2006-05-27 10:29:24 UTC (rev 510) @@ -185,6 +185,7 @@ $nick_dir = ($chan != NULL) ? $c->container_cfg_channel_dir."/".$this->_encode($chan)."/nicknames" : $c->container_cfg_server_dir."/nicknames"; + if (!is_dir($nick_dir)) mkdir_r($nick_dir); // update my online status file $nick_filename = $nick_dir."/".$this->_encode($nick); @@ -338,7 +339,8 @@ $nick_dir = ($chan != NULL) ? $c->container_cfg_channel_dir."/".$this->_encode($chan)."/nicknames" : $c->container_cfg_server_dir."/nicknames"; - + if (!is_dir($nick_dir)) mkdir_r($nick_dir); + $users = array(); $dir_handle = opendir($nick_dir); while (false !== ($file = readdir($dir_handle))) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |