Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Joomla is failing on me!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="dekan" data-source="post: 1262784" data-attributes="member: 28590"><p>have you tried to do a var_dump( $tables ) right before foreach? Might help to know what exactly $tables is. </p><p></p><p>You don't check, if settype actually works for you. The function returns a bool, so I would change the code to:</p><p></p><p>[PHP]</p><p>if( settype($tables, 'array') )</p><p>{</p><p> //for testing: </p><p> var_dump( $tables );</p><p></p><p> $results = array();</p><p></p><p> foreach( ... )</p><p> {</p><p> ...</p><p> }</p><p>}</p><p>else</p><p>{</p><p> //catch in case $tables cannot be set to array</p><p> ...</p><p>}</p><p>[/PHP]</p><p></p><p>Hope that helps!</p></blockquote><p></p>
[QUOTE="dekan, post: 1262784, member: 28590"] have you tried to do a var_dump( $tables ) right before foreach? Might help to know what exactly $tables is. You don't check, if settype actually works for you. The function returns a bool, so I would change the code to: [PHP] if( settype($tables, 'array') ) { //for testing: var_dump( $tables ); $results = array(); foreach( ... ) { ... } } else { //catch in case $tables cannot be set to array ... } [/PHP] Hope that helps! [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Joomla is failing on me!
Top