diff --git a/include/dba_pdo.php b/include/dba_pdo.php
index 7cd8c638e..eed9ea125 100644
--- a/include/dba_pdo.php
+++ b/include/dba_pdo.php
@@ -126,6 +126,7 @@ class dba {
# bad workaround to emulate the bizzare behavior of mysql_query
if(in_array($strSQLType, array('INSERT', 'UPDATE', 'DELETE', 'CREATE', 'DROP', 'SET')))
$result = true;
+ $intErrorCode = false;
} catch (\Exception $objException) {
$result = false;
diff --git a/view/theme/decaf-mobile/templates/head.tpl b/view/theme/decaf-mobile/templates/head.tpl
index 07398391f..9d815efcf 100644
--- a/view/theme/decaf-mobile/templates/head.tpl
+++ b/view/theme/decaf-mobile/templates/head.tpl
@@ -1,21 +1,8 @@
-{{*
- * AUTOMATICALLY GENERATED TEMPLATE
- * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
- *
- *}}
-{{**}}
-
-{{**}}
+
-{{**}}
diff --git a/view/theme/frost-mobile/templates/head.tpl b/view/theme/frost-mobile/templates/head.tpl
index d11d072f2..abc4fa731 100644
--- a/view/theme/frost-mobile/templates/head.tpl
+++ b/view/theme/frost-mobile/templates/head.tpl
@@ -1,20 +1,8 @@
-{{*
- * AUTOMATICALLY GENERATED TEMPLATE
- * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
- *
- *}}
-{{**}}
-
-{{**}}
+
-{{**}}