/[scire]/trunk/scire/.lib/DB_functions.php
Gentoo

Diff of /trunk/scire/.lib/DB_functions.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 337 Revision 338
387 } 387 }
388 $result = $db->insert('jobs_clients', array('jobid' => $jobid, 'clientid' => $client)); 388 $result = $db->insert('jobs_clients', array('jobid' => $jobid, 'clientid' => $client));
389 if (!$result) { 389 if (!$result) {
390 return $db->error; 390 return $db->error;
391 } 391 }
392 if ($run_schedule != "") {
393 $result = $db->insert('recurring_jobs_clients', array('jobid' => $jobid, 'clientid' => $client));
394 if (!$result) {
395 return $db->error;
396 }
397 }
392 } 398 }
393 } 399 }
394 400
395 if ($clientgroups) { 401 if ($clientgroups) {
396 foreach ($clientgroups as $cgroup) { 402 foreach ($clientgroups as $cgroup) {
397 $result = $db->insert('jobs_clients', array('jobid' => $jobid, 'groupid' => $cgroup)); 403 $result = $db->insert('jobs_clients', array('jobid' => $jobid, 'groupid' => $cgroup));
398 if (!$result) { 404 if (!$result) {
399 return $db->error; 405 return $db->error;
406 }
407 if ($run_schedule != "") {
408 $result = $db->insert('recurring_jobs_clients', array('jobid' => $jobid, 'groupid' => $cgroup));
409 if (!$result) {
410 return $db->error;
411 }
400 } 412 }
401 } 413 }
402 } 414 }
403 return 0; #Success 415 return 0; #Success
404} 416}

Legend:
Removed from v.337  
changed lines
  Added in v.338

  ViewVC Help
Powered by ViewVC 1.1.20