From 2ae6535899f3edbd1e773a471206226e24a15f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20H=C5=AFla?= Date: Sat, 28 Jan 2012 12:21:47 +0100 Subject: [PATCH] Consider value of %n array as identifier --- dibi/libs/DibiTranslator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dibi/libs/DibiTranslator.php b/dibi/libs/DibiTranslator.php index dfdc7eee..abc12b1a 100644 --- a/dibi/libs/DibiTranslator.php +++ b/dibi/libs/DibiTranslator.php @@ -239,7 +239,7 @@ final class DibiTranslator extends DibiObject case 'n': // key, key, ... identifier names foreach ($value as $k => $v) { if (is_string($k)) { - $vx[] = $this->identifiers->$k . (empty($v) ? '' : ' AS ' . $v); + $vx[] = $this->identifiers->$k . (empty($v) ? '' : ' AS ' . $this->identifiers->$v); } else { $pair = explode('%', $v, 2); // split into identifier & modifier $vx[] = $this->identifiers->{$pair[0]};