diff --git a/include/dba_pdo.php b/include/dba_pdo.php
index 7cd8c638e7..eed9ea1251 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 07398391f1..9d815efcf2 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 d11d072f26..abc4fa731e 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
- *
- *}}
-{{**}}
-
-{{**}}
+
-{{**}}