PHP Classes

Error in phpmydatagrid.class.php

Recommend this page to a friend!

      phpMyDataGrid - AJAX Enabled Datagrid  >  All threads  >  Error in phpmydatagrid.class.php  >  (Un) Subscribe thread alerts  
Subject:Error in phpmydatagrid.class.php
Summary:Error in phpmydatagrid.class.php
Messages:2
Author:Jaroslav
Date:2011-05-03 12:03:23
Update:2011-05-03 14:06:46
 

  1. Error in phpmydatagrid.class.php   Reply   Report abuse  
Picture of Jaroslav Jaroslav - 2011-05-03 12:03:23
Hi,
when Work days is empty some examples returns "Warning: number_format() expects parameter 1 to be double, string given in /var/www/lab/phpclassess/phpmydatagrid/phpmydatagrid.class.php on line 1664", for example sample2.php.

I think I found error in phpmydatagrid.class.php in function number_mask at line 1651

wrong code
if (is_null($value || is_numeric($value)==false )) return $value;

right code
if (is_null($value) || is_numeric($value)==false ) return $value;

  2. Re: Error in phpmydatagrid.class.php   Reply   Report abuse  
Picture of Gustavo Arcila Gustavo Arcila - 2011-05-03 14:06:46 - In reply to message 1 from Jaroslav
Thank you, you're right. it is fixed now :-)