| @@ 483-487 (lines=5) @@ | ||
| 480 | $this->db->quoteString($answer), $uid, $datesub, $notifypub, $answerid); |
|
| 481 | } |
|
| 482 | ||
| 483 | if (false != $force) { |
|
| 484 | $result = $this->db->queryF($sql); |
|
| 485 | } else { |
|
| 486 | $result = $this->db->query($sql); |
|
| 487 | } |
|
| 488 | ||
| 489 | if (!$result) { |
|
| 490 | return false; |
|
| @@ 518-522 (lines=5) @@ | ||
| 515 | ||
| 516 | //echo "<br>" . $sql . "<br>"; |
|
| 517 | ||
| 518 | if (false != $force) { |
|
| 519 | $result = $this->db->queryF($sql); |
|
| 520 | } else { |
|
| 521 | $result = $this->db->query($sql); |
|
| 522 | } |
|
| 523 | if (!$result) { |
|
| 524 | return false; |
|
| 525 | } |
|
| @@ 341-345 (lines=5) @@ | ||
| 338 | $sql = sprintf('UPDATE %s SET parentid = %u, name = %s, description = %s, total = %s, weight = %u, created = %u WHERE categoryid = %u', $this->db->prefix('smartfaq_categories'), $parentid, |
|
| 339 | $this->db->quoteString($name), $this->db->quoteString($description), $total, $weight, $created, $categoryid); |
|
| 340 | } |
|
| 341 | if (false != $force) { |
|
| 342 | $result = $this->db->queryF($sql); |
|
| 343 | } else { |
|
| 344 | $result = $this->db->query($sql); |
|
| 345 | } |
|
| 346 | if (!$result) { |
|
| 347 | return false; |
|
| 348 | } |
|
| @@ 388-392 (lines=5) @@ | ||
| 385 | $smartModule = sf_getModuleInfo(); |
|
| 386 | $module_id = $smartModule->getVar('mid'); |
|
| 387 | ||
| 388 | if (false != $force) { |
|
| 389 | $result = $this->db->queryF($sql); |
|
| 390 | } else { |
|
| 391 | $result = $this->db->query($sql); |
|
| 392 | } |
|
| 393 | ||
| 394 | xoops_groupperm_deletebymoditem($module_id, 'category_read', $category->categoryid()); |
|
| 395 | //xoops_groupperm_deletebymoditem ($module_id, "category_admin", $categoryObj->categoryid()); |
|
| @@ 790-794 (lines=5) @@ | ||
| 787 | $counter, $weight, $html, $smiley, $xcodes, $cancomment, $comments, $notifypub, $this->db->quoteString($modulelink), $this->db->quoteString($contextpage), $exacturl, |
|
| 788 | $partialview, $faqid); |
|
| 789 | } |
|
| 790 | if (false != $force) { |
|
| 791 | $result = $this->db->queryF($sql); |
|
| 792 | } else { |
|
| 793 | $result = $this->db->query($sql); |
|
| 794 | } |
|
| 795 | ||
| 796 | if (!$result) { |
|
| 797 | return false; |
|
| @@ 834-838 (lines=5) @@ | ||
| 831 | ||
| 832 | $sql = sprintf('DELETE FROM %s WHERE faqid = %u', $this->db->prefix('smartfaq_faq'), $faq->getVar('faqid')); |
|
| 833 | ||
| 834 | if (false != $force) { |
|
| 835 | $result = $this->db->queryF($sql); |
|
| 836 | } else { |
|
| 837 | $result = $this->db->query($sql); |
|
| 838 | } |
|
| 839 | if (!$result) { |
|
| 840 | return false; |
|
| 841 | } |
|