Changeset 1385
- Timestamp:
- 09/03/09 10:06:31 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/local/classes/class.wf_instance.php
r795 r1385 358 358 if (!in_array($currentStatus, $statusPossibleValues)) 359 359 trigger_error('wf_engine::getUserInstances: O status "' . $currentStatus . '" é inválido', E_USER_ERROR); 360 array_walk($status, create_function('&$a', '$a = "\'$a\'";'));361 360 } 362 361 … … 375 374 if ($restrictToStatus) 376 375 { 377 $query .= ' AND (i.wf_status IN (?))'; 378 $values[] = '{' . implode(', ', $status) . '}'; 376 $aux = ' AND (i.wf_status IN ('; 377 foreach($status as $id){ 378 $values[] = $id; 379 $query .= $aux.' ?'; 380 $aux = ', '; 381 } 382 $query .= ' ))'; 379 383 } 380 384
Note: See TracChangeset
for help on using the changeset viewer.