[Solar-svn] Revision 2703
pmjones at solarphp.com
pmjones at solarphp.com
Wed Aug 15 20:22:11 CDT 2007
Branch: Solar_Locale: [FIX] When inserting values for name placeholders, cast the replacement value to a string
Modified: branches/orm/Solar/Locale.php
===================================================================
--- branches/orm/Solar/Locale.php 2007-08-15 23:15:52 UTC (rev 2702)
+++ branches/orm/Solar/Locale.php 2007-08-16 01:22:11 UTC (rev 2703)
@@ -259,7 +259,7 @@
} else {
// associative array, use str_replace()
foreach ($replace as $key => $val) {
- $string = str_replace("{:$key}", $val, $string);
+ $string = str_replace("{:$key}", (string) $val, $string);
}
}
}
More information about the Solar-svn
mailing list