Skip to content
Snippets Groups Projects
Unverified Commit 43a5900e authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4772 from JediKev/issue/faq-return-errors

issue: FAQ Return Errors
parents e31420bd f591cafe
No related branches found
No related tags found
Loading
......@@ -4,7 +4,7 @@ if (!defined('OSTSCPINC') || !$thisstaff
die('Access Denied');
$info = $qs = array();
if($faq){
if($faq && $faq->getId()){
$title=__('Update FAQ').': '.$faq->getQuestion();
$action='update';
$submit_text=__('Save Changes');
......
......@@ -143,7 +143,7 @@ if ($_POST) {
}
$inc='faq-categories.inc.php'; //FAQs landing page.
if($faq) {
if($faq && $faq->getId()) {
$inc='faq-view.inc.php';
if ($_REQUEST['a']=='edit'
&& $thisstaff->hasPerm(FAQ::PERM_MANAGE))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment