Changeset 6100
- Timestamp:
- 05/04/12 12:39:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/mail/interceptors/Helpers.php
r6099 r6100 358 358 public function verifyNameLabel(&$uri , &$params , &$criteria , $original){ 359 359 $labels = Controller::find( array('concept' => 'label'), false, array('filter' => array('i=', 'name', $params['name']))); 360 ob_start(); 361 print_r("labels \n"); 362 print_r($labels); 363 print_r("params \n"); 364 print_r($params); 365 366 $output = ob_get_clean(); 367 file_put_contents( "/tmp/marci.log", $output , FILE_APPEND); 368 $key = 'id'; 360 369 361 if (!empty($labels)){ 370 362 foreach ($labels as $i => $v){ 371 363 if(!isset($params['id']) || $v['id'] != $params['id']){ 372 /* ob_start();373 print_r($v['id']);374 print_r($params['id']);375 376 $output = ob_get_clean();377 file_put_contents( "/tmp/marci.log", $output , FILE_APPEND); */378 364 throw new Exception('#LabelNameError'); 379 365 } 380 366 } 381 367 } 382 /* if( !!Controller::find( array('concept' => 'label'), false, array('filter' => array('i=', 'name', $params['name'])) ) )383 {384 throw new Exception('#LabelNameError');385 } */386 368 } 387 369
Note: See TracChangeset
for help on using the changeset viewer.