From: Rotem Liss Date: Fri, 3 Aug 2007 00:00:15 +0000 (+0000) Subject: I guess it should actually return the result (anyway, there is a fatal PHP error... X-Git-Tag: 1.31.0-rc.0~51885 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=f8b9f0759b76d1a8585be992f09532c1ad400314;p=lhc%2Fweb%2Fwiklou.git I guess it should actually return the result (anyway, there is a fatal PHP error when the folder was not writable without this fix, rather than a valid error shown to the user like now). --- diff --git a/includes/filerepo/FileRepoStatus.php b/includes/filerepo/FileRepoStatus.php index 9e8e079efc..972b2e466e 100644 --- a/includes/filerepo/FileRepoStatus.php +++ b/includes/filerepo/FileRepoStatus.php @@ -22,6 +22,7 @@ class FileRepoStatus { $result = new self( $repo ); call_user_func_array( array( &$result, 'error' ), $params ); $result->ok = false; + return $result; } static function newGood( $repo = false, $value = null ) {