Completed
Branch develop (d03655)
by
unknown
18:50
created
htdocs/workstation/class/api_workstations.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 		}
130 130
 
131 131
 		// this query will return total products with the filters given
132
-		$sqlTotals =  str_replace('SELECT t.rowid, t.ref', 'SELECT count(t.rowid) as total', $sql);
132
+		$sqlTotals = str_replace('SELECT t.rowid, t.ref', 'SELECT count(t.rowid) as total', $sql);
133 133
 
134 134
 		$sql .= $this->db->order($sortfield, $sortorder);
135 135
 		if ($limit) {
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 			$obj_ret['pagination'] = array(
171 171
 				'total' => (int) $total,
172 172
 				'page' => $page, //count starts from 0
173
-				'page_count' => ceil((int) $total/$limit),
173
+				'page_count' => ceil((int) $total / $limit),
174 174
 				'limit' => $limit
175 175
 			);
176 176
 		}
Please login to merge, or discard this patch.