1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-10 08:04:32 +02:00
This commit is contained in:
David Grudl
2006-06-08 02:08:01 +00:00
parent 1e3728c582
commit b779082ed9
3 changed files with 9 additions and 9 deletions

View File

@@ -84,7 +84,7 @@ class DibiParser
if (!$command)
$command = strtoupper(substr(ltrim($args[0]), 0, 6));
$mod = ('INSERT' == $command || 'REPLAC' == $command) ? 'v' : 'e';
$mod = ('INSERT' == $command || 'REPLAC' == $command) ? 'v' : 'a';
}
// default processing
@@ -116,7 +116,7 @@ class DibiParser
$vx = $kx = array();
switch ($modifier) {
case 'e': // SET
case 'a': // SET (assoc)
foreach ($value as $k => $v) {
// split into identifier & modifier
$pair = explode('%', $k, 2);
@@ -224,7 +224,7 @@ class DibiParser
substr($value, $toSkip)
);
case 'e':
case 'a':
case 'v':
$this->hasError = TRUE;
return "**Unexpected ".gettype($value)."**";