Skip to content
Snippets Groups Projects
Commit 0df6975c authored by Uma's avatar Uma
Browse files

Api review comments are been addressed

parent 6a416196
No related branches found
No related tags found
No related merge requests found
......@@ -1571,11 +1571,11 @@ class Vtiger_Functions {
$query = "SELECT attachmentsid FROM vtiger_seattachmentsrel WHERE crmid = ?";
$result = $adb->pquery($query, array($crmid));
$noofrows = $adb->num_rows($result);
if ($adb->num_rows($result) > 1) {
if ($noofrows > 1) {
for ($i = 0; $i < $noofrows; $i++) {
$attachmentIds[] = vtws_getId($WsEntityId,$adb->query_result($result, $i, 'attachmentsid'));
}
} else if($adb->num_rows($result) > 0 && $adb->num_rows($result) == 1){
} else if($noofrows > 0){
$attachmentIds[] = vtws_getId($WsEntityId, $adb->query_result($result, 0, 'attachmentsid'));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment