@@ 2387-2400 (lines=14) @@ | ||
2384 | $this->config->getLanguage()->getLanguage() |
|
2385 | ); |
|
2386 | ||
2387 | if ($result = $this->config->getDb()->query($query)) { |
|
2388 | if ($row = $this->config->getDb()->fetchObject($result)) { |
|
2389 | $question = array( |
|
2390 | 'id' => $row->id, |
|
2391 | 'lang' => $row->lang, |
|
2392 | 'username' => $row->username, |
|
2393 | 'email' => $row->email, |
|
2394 | 'category_id' => $row->category_id, |
|
2395 | 'question' => $row->question, |
|
2396 | 'created' => $row->created, |
|
2397 | 'is_visible' => $row->is_visible, |
|
2398 | ); |
|
2399 | } |
|
2400 | } |
|
2401 | ||
2402 | return $question; |
|
2403 | } |
|
@@ 2432-2446 (lines=15) @@ | ||
2429 | ($all === false ? " AND is_visible = 'Y'" : '') |
|
2430 | ); |
|
2431 | ||
2432 | if ($result = $this->config->getDb()->query($query)) { |
|
2433 | while ($row = $this->config->getDb()->fetchObject($result)) { |
|
2434 | $questions[] = array( |
|
2435 | 'id' => $row->id, |
|
2436 | 'lang' => $row->lang, |
|
2437 | 'username' => $row->username, |
|
2438 | 'email' => $row->email, |
|
2439 | 'category_id' => $row->category_id, |
|
2440 | 'question' => $row->question, |
|
2441 | 'created' => $row->created, |
|
2442 | 'answer_id' => $row->answer_id, |
|
2443 | 'is_visible' => $row->is_visible, |
|
2444 | ); |
|
2445 | } |
|
2446 | } |
|
2447 | ||
2448 | return $questions; |
|
2449 | } |