Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 60ee04a

Browse files
author
Lars Borchert
committed
fix issue #40 and add full type names like 'string' and 'integer'
1 parent a6f82a8 commit 60ee04a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

‎class.MySQL.php‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,19 @@ private function CleanData($data, $type = ''){
121121
$data = $data;
122122
break;
123123
case 'str':
124-
$data = settype( $data, 'string');
124+
case 'string':
125+
settype( $data, 'string');
125126
break;
126127
case 'int':
127-
$data = settype( $data, 'integer');
128+
case 'integer':
129+
settype( $data, 'integer');
128130
break;
129131
case 'float':
130-
$data = settype( $data, 'float');
132+
settype( $data, 'float');
131133
break;
132134
case 'bool':
133-
$data = settype( $data, 'boolean');
135+
case 'boolean':
136+
settype( $data, 'boolean');
134137
break;
135138
// Y-m-d H:i:s
136139
// 2014年01月01日 12:30:30
@@ -141,7 +144,7 @@ private function CleanData($data, $type = ''){
141144
$data = $matches[1];
142145
break;
143146
case 'ts2dt':
144-
$data = settype( $data, 'integer');
147+
settype( $data, 'integer');
145148
$data = date('Y-m-d H:i:s', $data);
146149
break;
147150

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /