From f1ef56e1c1be31e676d03a7353c49ace956fe46d Mon Sep 17 00:00:00 2001 From: guruevi Date: Tue, 23 Dec 2008 14:22:14 +0000 Subject: [PATCH] 2008-12-23 Evi Vanoost * pandoradb_data.sql, include/config.php, pandoradb.sql, diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 5977267c36..ef44f51a94 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -375,6 +375,8 @@ function pagination ($count, $url, $offset, $pagination = 0) { * @return */ function format_numeric ($number, $decimals = 1) { + $number = (float) $number; //Translate to float in case there are characters in the string so fmod doesn't throw a notice + if ($number == 0) return 0;