Forums

hide a block conditionally

RobP 13 Sep, 2013
I try to hide a block conditionally.
The start code is:

<?php
  if ( $form->data['medewerkers_ext']['gewicht_id'] == '3' ) {
?>


I must do something wrong, it doesn't work.

With debug I get the following data array (shortened):
Array
(
[list][option] => com_chronoconnectivity
[Itemid] =>
[chronoconnection] => medewerkers
[task] => cc_edit_data
[cb] => 571
[medewerkers_ext] => Array
[list](
[gewicht_id] => 3
)[/list]
[/list]
)

Rob
RobP 15 Sep, 2013
Tested it again today, with 3 instead of '3'
Now it works.
Yesterday it din't work with the 3

I upgraded my php from 5.4.11 to 5.4.16, all errors I had (a lot) are gone.

Rob
GreyHead 16 Sep, 2013
Hi Rob,

I don't know what happened here :-( Might you have had a different level of error reporting in the updated version? I think I'm still on PHP 5.3 for my sites.

Bob
RobP 16 Sep, 2013
Hi Bob,

I use Zend server on my new test/development server.
When I installed a copy of the site on an old pc with PHP 5.3 everything worked.

After updating ZEND it works also on my new pc.
php 5.4.11 apparently has some bugs, php 5.4.16 works OK (for now).
Still alot of usort() errors, but at least Joomla works.

Rob
This topic is locked and no more replies can be posted.