CVSROOT: /cvsroot/phpgroupware Module name: filemanager Changes by: Caeies <Caeies> 06/12/22 23:52:49
Modified files: inc : class.uifilemanager.inc.php Log message: fixed small E_ALL for quota == -1 CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/filemanager/inc/class.uifilemanager.inc.php?cvsroot=phpgroupware&r1=1.37&r2=1.38 Patches: Index: class.uifilemanager.inc.php =================================================================== RCS file: /cvsroot/phpgroupware/filemanager/inc/class.uifilemanager.inc.php,v retrieving revision 1.37 retrieving revision 1.38 diff -u -b -r1.37 -r1.38 --- class.uifilemanager.inc.php 29 Nov 2006 15:32:21 -0000 1.37 +++ class.uifilemanager.inc.php 22 Dec 2006 23:52:48 -0000 1.38 @@ -8,7 +8,7 @@ * @copyright Portions Copyright (C) 2000-2005 Free Software Foundation, Inc http://www.fsf.org/ * @license http://www.gnu.org/licenses/gpl.html GNU General Public License * @package filemanager - * @version $Id: class.uifilemanager.inc.php,v 1.37 2006/11/29 15:32:21 Caeies Exp $ + * @version $Id: class.uifilemanager.inc.php,v 1.38 2006/12/22 23:52:48 Caeies Exp $ * @internal Based on phpWebhosting */ @@ -729,6 +729,7 @@ } } + $free = False; if ($this->bofilemanager->quota != -1) { $free = $this->bofilemanager->borkb($this->bofilemanager->quota - $this->bofilemanager->get_size($this->homedir,True)); @@ -745,7 +746,6 @@ 'usage' => $this->bofilemanager->borkb($this->bofilemanager->get_size($this->homedir,True)), 'files_total' => $this->bofilemanager->count_files($this->homedir,True), 'lang_files_total' => lang('files total'), - 'unused' => $free ), 'files' => array ( @@ -788,6 +788,10 @@ 'link_label' => lang('add mozilla/netscape sidebar tab') )*/ ); + if($free === False) + { + $data['summary']['unused'] = $free; + } if($this->bofilemanager->path != '/') { _______________________________________________ phpGroupWare-cvs mailing list phpGroupWare-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/phpgroupware-cvs