aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/Db/Mysql.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Library/Db/Mysql.php')
-rwxr-xr-xh-source/Library/Db/Mysql.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/h-source/Library/Db/Mysql.php b/h-source/Library/Db/Mysql.php
index 4561a1b..d19d24a 100755
--- a/h-source/Library/Db/Mysql.php
+++ b/h-source/Library/Db/Mysql.php
@@ -270,7 +270,8 @@ class Db_Mysql {
$result = mysql_query($query);
$temp = array();
while ($row = mysql_fetch_assoc($result)) {
- $temp[$row['Field']] = reset(explode('(',$row['Type']));
+ $e = explode('(',$row['Type']);
+ $temp[$row['Field']] = reset($e);
}
$types = array();