瀏覽代碼

added bool in V::convert

Piotr Labudda 8 年之前
父節點
當前提交
a72a43211e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      SE/se-lib/V.php

+ 2 - 0
SE/se-lib/V.php

@@ -166,6 +166,8 @@ class V {
 					}
 				}
 				break;
+			case 'bool':
+			case 'boolean': return (bool)$from;
 			default:
 				$fun = 'func_type_convert_'.$type;
 				if (function_exists($fun)) {