Changeset 8242

Show
Ignore:
Timestamp:
08/29/09 14:29:48 (2 years ago)
Author:
p_lindheimer
Message:

fixes #3840 replace last with break left over from perl port

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.6/amp_conf/bin/retrieve_op_conf_from_mysql.php

    r8222 r8242  
    1 #!/usr/bin/php 
     1#!/usr/bin/php -q 
    22<?php 
    33 
     
    540540    $previousbtn = $btn; 
    541541    $btn=get_next_btn($trunkpos,$btn); 
    542     if ($btn == 0) {$btn = $previousbtn; last;} 
     542    if ($btn == 0) {$btn = $previousbtn; break;} 
    543543    if ($zapdef == "Zap/*") { 
    544544      $numbuttons=$row[2]-1; 
     
    562562    if ($account == "") {continue;}; 
    563563    $btn=get_next_btn($trunkpos,$btn); 
    564     if ($btn == 0) {last;} 
     564    if ($btn == 0) {break;} 
    565565    if (table_exists($db,$table)) { 
    566566    $statement = "SELECT keyword,data from $table where id='$id' and keyword <> 'account' and flags <> 1 order by keyword"; 
     
    625625    for ($i = 1 ; $i <= $numberlots ; $i++ ) { 
    626626      $btn=get_next_btn($parkingpos,$btn); 
    627       if ($btn == 0) {last;} 
     627      if ($btn == 0) {break;} 
    628628      $parknum = $extpark + $i ; 
    629629      $icon='1'; 
     
    647647  foreach ($confrange as $row) { 
    648648    $btn=get_next_btn($confepos,$btn); 
    649     if ($btn == 0) {last;} 
     649    if ($btn == 0) {break;} 
    650650    $confenum=$row[0]; 
    651651    $confedesc=$row[1]; 
     
    668668  foreach ($queuerange as $row) { 
    669669    $btn=get_next_btn($queuepos,$btn); 
    670     if ($btn == 0) {last;} 
     670    if ($btn == 0) {break;} 
    671671    $queuename=$row[0]; 
    672672    $queuedesc=$row[1]; 
     
    760760      $ysize = 1 + (($stop-1)%$numbuttonsy) - (($start-1)%$numbuttonsy); 
    761761 
    762       if (($xsize <= 0) || ($ysize <= 0)) {print "Warning: rectange '$id' has negative area\n"; last;} 
     762      if (($xsize <= 0) || ($ysize <= 0)) {print "Warning: rectange '$id' has negative area\n"; break;} 
    763763      $styleinfo = ""; 
    764764      if ($ysize > 2) { 
     
    778778      } 
    779779      $retval = $styleinfo; 
    780       last
     780      break
    781781    } 
    782782  }