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

Merge branch 'hotfix/tpl-syntax-error' into develop

parents 1aeebc95 2f1b9527
No related branches found
No related tags found
No related merge requests found
......@@ -28,11 +28,12 @@ class Template {
if(!$id && !($id=$this->getId()))
return false;
$sql='SELECT tpl.*,count(dept.tpl_id) as depts '
.' FROM '.EMAIL_TEMPLATE_TABLE.' tpl '
.' 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))
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