@@ 428-437 (lines=10) @@ | ||
425 | ||
426 | $result = Database::query($sql); |
|
427 | $array = array(); |
|
428 | if (Database::num_rows($result) > 0) { |
|
429 | while ($row = Database::fetch_array($result, 'ASSOC')) { |
|
430 | if ($with_image) { |
|
431 | $picture = self::get_picture_group($row['id'], $row['picture_uri'], 80); |
|
432 | $img = '<img src="'.$picture['file'].'" />'; |
|
433 | $row['picture_uri'] = $img; |
|
434 | } |
|
435 | $array[$row['id']] = $row; |
|
436 | } |
|
437 | } |
|
438 | return $array; |
|
439 | } |
|
440 |
@@ 1769-1778 (lines=10) @@ | ||
1766 | ORDER BY created_at DESC "; |
|
1767 | $result = Database::query($sql); |
|
1768 | $array = array(); |
|
1769 | if (Database::num_rows($result) > 0) { |
|
1770 | while ($row = Database::fetch_array($result, 'ASSOC')) { |
|
1771 | if ($with_image) { |
|
1772 | $picture = self::get_picture_group($row['id'], $row['picture'],80); |
|
1773 | $img = '<img src="'.$picture['file'].'" />'; |
|
1774 | $row['picture'] = $img; |
|
1775 | } |
|
1776 | $array[$row['id']] = $row; |
|
1777 | } |
|
1778 | } |
|
1779 | return $array; |
|
1780 | } |
|
1781 |