#18621848 : handle default value even it is zero

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7162 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-01-18 13:42:01 +00:00
parent b39cad33e0
commit aaafd27982

View file

@ -469,7 +469,7 @@
*/
function getDefault($name, $value) {
$db_info = Context::getDBInfo ();
if(!$value) return;
if(!isset($value)) return;
$str_pos = strpos($value, '(');
if($str_pos===false) return '"'.$value.'"';