|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
bimal Smarty Elite
Joined: 19 Apr 2007 Posts: 423
|
Posted: Wed Aug 01, 2012 6:12 am Post subject: Tolerate sections in configLoad |
|
|
Unfortunately, I found a code snippet:
Code: | $smarty->configLoad('configs.conf', true); |
in some of my app.
The error I see is:
Warning: array_flip(): Can only flip STRING and INTEGER values! in D:___\sysplugins\smarty_internal_config.php on line 244 with Smarty @version 3.1-DEV.
It works with non-existing section names, other strings, empty string (''), numerals, numeric 1, but not boolean - true.
Hope, you can fix this later on, and try to access the sections only if they exist. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Aug 01, 2012 9:32 pm Post subject: |
|
|
This is now fixed in the SVN trunk and will later be included in 3.1.12 |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|