Browse Source

update previous to not die on errors

Andrew Dolgov 10 months ago
parent
commit
803b8ead1e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      index.php
  2. 1 1
      prefs.php

+ 1 - 1
index.php

@@ -64,7 +64,7 @@
 	<?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
 
 	<?php if ($_SESSION["uid"]) {
-		$theme = get_pref("USER_CSS_THEME");
+		$theme = get_pref("USER_CSS_THEME", false, false);
 		if ($theme && theme_valid("$theme")) {
 			echo stylesheet_tag(get_theme_path($theme));
 		} else {

+ 1 - 1
prefs.php

@@ -40,7 +40,7 @@
 	<?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
 
 	<?php if ($_SESSION["uid"]) {
-		$theme = get_pref("USER_CSS_THEME");
+		$theme = get_pref("USER_CSS_THEME", false, false);
 		if ($theme && theme_valid("$theme")) {
 			echo stylesheet_tag(get_theme_path($theme));
 		} else {