diff --git a/phpgwapi/inc/class.sbox2.inc.php b/phpgwapi/inc/class.sbox2.inc.php index 1dffb20d2e..aea7471127 100644 --- a/phpgwapi/inc/class.sbox2.inc.php +++ b/phpgwapi/inc/class.sbox2.inc.php @@ -6,7 +6,7 @@ * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* * This library is part of the phpGroupWare API * - * http://www.phpgroupware.org/api * + * http://www.phpgroupware.org/api * * ------------------------------------------------------------------------ * * This library is free software; you can redistribute it and/or modify it * * under the terms of the GNU Lesser General Public License as published by * @@ -23,7 +23,11 @@ /* $Id$ */ - include(PHPGW_API_INC . '/class.sbox.inc.php'); + if(!isset($GLOBALS['phpgw_info']['flags']['included_classes']['sbox'])) + { + include(PHPGW_API_INC . '/class.sbox.inc.php'); + $GLOBALS['phpgw_info']['flags']['included_classes']['sbox'] = True; + } class sbox2 extends sbox { @@ -50,7 +54,7 @@ function getId($name,$lang_name,$prompt,$id_name,$content='',$note='',$multiple=False) { // echo "
getId('$name','$lang_name','$prompt',$id_name,'$content') ="; - $ret['doSearchFkt'] = + $ret['doSearchFkt'] = ''; - $ret[$name.'_title'] = is_array($content) && count($content) ? $lang_name : + $ret[$name.'_title'] = is_array($content) && count($content) ? $lang_name : '