@@ 105-112 (lines=8) @@ | ||
102 | $query .= " limit $offset, $limit"; // Add order and limit |
|
103 | } |
|
104 | ||
105 | if ($count) { |
|
106 | $numrows = get_data_row($query); |
|
107 | if ($numrows) { |
|
108 | return $numrows->count; |
|
109 | } |
|
110 | } else { |
|
111 | return get_data($query); |
|
112 | } |
|
113 | ||
114 | return false; |
|
115 | } |
@@ 198-205 (lines=8) @@ | ||
195 | $query .= " LIMIT $offset, $limit"; // Add order and limit |
|
196 | } |
|
197 | ||
198 | if ( $count ) { |
|
199 | $numrows = get_data_row($query); |
|
200 | if ( $numrows ) { |
|
201 | return $numrows->count; |
|
202 | } |
|
203 | } else { |
|
204 | return get_data($query); |
|
205 | } |
|
206 | ||
207 | return false; |
|
208 | } |