Skip to content
Snippets Groups Projects
Commit 2f1b9527 authored by Peter Rotich's avatar Peter Rotich
Browse files

Syntax error fix

parent 18b5e955
No related branches found
No related tags found
No related merge requests found
...@@ -28,11 +28,12 @@ class Template { ...@@ -28,11 +28,12 @@ class Template {
if(!$id && !($id=$this->getId())) if(!$id && !($id=$this->getId()))
return false; return false;
$sql='SELECT tpl.*,count(dept.tpl_id) as depts ' $sql='SELECT tpl.*,count(dept.tpl_id) as depts '
.' FROM '.EMAIL_TEMPLATE_TABLE.' tpl ' .' FROM '.EMAIL_TEMPLATE_TABLE.' tpl '
.' LEFT JOIN '.DEPT_TABLE.' dept USING(tpl_id) ' .' LEFT JOIN '.DEPT_TABLE.' dept USING(tpl_id) '
.' WHERE tpl_id='.db_input($id); .' WHERE tpl.tpl_id='.db_input($id)
.' GROUP BY tpl.tpl_id';
if(!($res=db_query($sql))|| !db_num_rows($res)) if(!($res=db_query($sql))|| !db_num_rows($res))
return false; return false;
......
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