Skip to content

Commit cd44103

Browse files
committed
merge in patch from propelorm#1082
1 parent 9669018 commit cd44103

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

generator/lib/config/GeneratorConfig.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function getClassname($propname)
121121
// Basically, we want to turn ?.?.?.sqliteDataSQLBuilder into ?.?.?.SqliteDataSQLBuilder
122122
$lastdotpos = strrpos($classpath, '.');
123123
if ($lastdotpos !== false) {
124-
$classpath{$lastdotpos + 1} = strtoupper($classpath{$lastdotpos + 1});
124+
$classpath[$lastdotpos + 1] = strtoupper($classpath[$lastdotpos + 1]);
125125
} else {
126126
// Allows to configure full classname instead of a dot-path notation
127127
if (class_exists($classpath)) {

generator/lib/config/QuickGeneratorConfig.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected function parsePseudoIniFile($filepath)
6262
}
6363
foreach ($lines as $line) {
6464
$line = trim($line);
65-
if ($line == "" || $line{0} == '#' || $line{0} == ';') {
65+
if ($line == "" || $line[0] == '#' || $line[0] == ';') {
6666
continue;
6767
}
6868
$pos = strpos($line, '=');

runtime/lib/util/BasePeer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,10 @@ public static function doUpdate(Criteria $selectCriteria, Criteria $updateValues
397397
$rawcvt = '';
398398
// parse the $params['raw'] for ? chars
399399
for ($r = 0, $len = strlen($raw); $r < $len; $r++) {
400-
if ($raw{$r} == '?') {
400+
if ($raw[$r] == '?') {
401401
$rawcvt .= ':p' . $p++;
402402
} else {
403-
$rawcvt .= $raw{$r};
403+
$rawcvt .= $raw[$r];
404404
}
405405
}
406406
$sql .= $rawcvt . ', ';

0 commit comments

Comments
 (0)