Commit ff89f3fc4dfcefeaeb6aee3c4b67e5359f0f0d8a

Authored by Etienne Pallier
1 parent 5d44e2af
Exists in master and in 2 other branches dev, dev-IRAP

bugfix

src/Controller/AppController.php
... ... @@ -789,10 +789,10 @@ class AppController extends Controller
789 789 */
790 790 }
791 791  
792   - function myDebug($arg, $stop = false)
  792 + function myDebug($arg, $stop=false)
793 793 {
794 794 if ($this->isLabinventDebugMode()) {
795   - //Configure::write('debug', true);
  795 + Configure::write('debug', true);
796 796 debug($arg);
797 797 if ($stop) exit();
798 798 }
... ...
src/Model/Table/LdapConnectionsTable.php
... ... @@ -35,7 +35,7 @@ class LdapConnectionsTable extends AppTable
35 35  
36 36 private $fakeLDAPUsers = [];
37 37  
38   - private function mydebug($arg, $stop = false)
  38 + private function mydebugmsg($arg, $stop = false)
39 39 {
40 40 if ($this->DEBUG_MODE) {
41 41 //Configure::write('debug', true);
... ... @@ -269,9 +269,9 @@ class LdapConnectionsTable extends AppTable
269 269 // Sort users
270 270 //sort($u);
271 271 //debug($u);
272   - $this->mydebug("ldap users 0 and 1:");
273   - $this->mydebug($u[0]);
274   - $this->mydebug($u[1]);
  272 + $this->mydebugmsg("ldap users 0 and 1:");
  273 + $this->mydebugmsg($u[0]);
  274 + $this->mydebugmsg($u[1]);
275 275 // (EP) Refactorisation pour éviter code redondant du temps des stagiaires...
276 276 $nb_users = $this->LDAP_USED ? $u['count'] : sizeof($u)-1;
277 277 for ($i = 0; $i < $nb_users; $i ++)
... ... @@ -529,8 +529,6 @@ class LdapConnectionsTable extends AppTable
529 529  
530 530 } // end ldapAuthentication()
531 531  
532   -
533   -
534   -
  532 +
535 533 }
536 534 ?>
... ...