diff --git a/api/v1/post/application.php b/api/v1/post/application.php index 88b1fbb..83aefc5 100644 --- a/api/v1/post/application.php +++ b/api/v1/post/application.php @@ -108,7 +108,7 @@ switch ($action) { if ($rowID){ //check if under warranty - $warranty = getrowID($dbname,'rowID','history','equipmentid="'.$rowID['rowID'].'" && (type="'.$type9.'" || type="'.$type10.'" || type="'.$type11.'" || type="'.$type12.'")'); + $warranty = getrowID($dbname,'rowID','equipment_history','equipmentid="'.$rowID['rowID'].'" && (type="'.$type9.'" || type="'.$type10.'" || type="'.$type11.'" || type="'.$type12.'")'); if ($warranty){ // -------------------------------------------- // Already under contract @@ -218,7 +218,7 @@ switch ($action) { $rowID = getrowID($dbname,'rowID','equipment','serialnumber="'.$post_content['sn'].'"'); if ($rowID){ //check if under warranty - $warranty = getrowID($dbname,'rowID','history','equipmentid="'.$rowID['rowID'].'" && (type="'.$type9.'" || type="'.$type10.'" || type="'.$type11.'" || type="'.$type12.'")'); + $warranty = getrowID($dbname,'rowID','equipment_history','equipmentid="'.$rowID['rowID'].'" && (type="'.$type9.'" || type="'.$type10.'" || type="'.$type11.'" || type="'.$type12.'")'); if ($warranty){ // -------------------------------------------- // Already under contract