|
@@ 1350-1352 (lines=3) @@
|
| 1347 |
|
$sql_query .= implode(' '.$condition.' ', $temp_conditions); |
| 1348 |
|
} |
| 1349 |
|
} |
| 1350 |
|
if (count($order_by) > 0) { |
| 1351 |
|
$sql_query .= ' ORDER BY '.Database::escape_string(implode(',', $order_by), null, false); |
| 1352 |
|
} |
| 1353 |
|
$sql_result = Database::query($sql_query); |
| 1354 |
|
while ($result = Database::fetch_array($sql_result)) { |
| 1355 |
|
$return_array[] = $result; |
|
@@ 1301-1303 (lines=3) @@
|
| 1298 |
|
$sql_query .= "$field = '$value'"; |
| 1299 |
|
} |
| 1300 |
|
} |
| 1301 |
|
if (count($order_by) > 0) { |
| 1302 |
|
$sql_query .= ' ORDER BY '.Database::escape_string(implode(',', $order_by), null, false); |
| 1303 |
|
} |
| 1304 |
|
|
| 1305 |
|
if (is_numeric($limit_from) && is_numeric($limit_from)) { |
| 1306 |
|
$limit_from = intval($limit_from); |