Update web view

Database.php :
	* Change account order
	* Forgot $db variable in LoadCategory
User.php :
	* Add default category for index 0
index.php :
	* Initialize $categories and $accounts arrays
	* Typo error for hidden accounts
	* Forgive credit on blocked account
	* Forgot to divide amounts by 100
	* Forgot to initialize tr_class variable in some case
This commit is contained in:
2012-05-22 20:29:08 +02:00
parent 102daf9a96
commit a5531465f6
4 changed files with 44 additions and 24 deletions

View File

@@ -27,14 +27,13 @@ class User
function GetCategory($id)
{
if ($id == "")
if ($id == "" || $id == "0")
{
$cat["id"] = "";
$cat["id"] = "0";
$cat["forecolor"] = "black";
$cat["backcolor"] = "#3DEB3D";
$s = "background-color:" . $cat["backcolor"] . ";";
$s .= "color:" . $cat["forecolor"] . ";";
$cat["style"] = $s;
$cat["font"] = "";
ExtractStyle($cat);
return $cat;
}