Cleans up the code, and allows proper behavior.

1.  async:false because mysql can be slow
2.  improved a regexp causing weird behavior with edit button
This commit is contained in:
Jonathan Rosenbaum
2015-01-04 01:35:19 +00:00
parent 511dc81471
commit d40dfca931
2 changed files with 28 additions and 30 deletions
+3 -2
View File
@@ -41,8 +41,9 @@ mysql_select_db($database_YBDB, $YBDB);
$result = mysql_fetch_assoc($sql);
if ( $visible_count == $result["count"] ) { // 1 or more deposits, and all deposits are visible
if ( $visible_count == $result["count"] ) { // 1 or more deposits, and all deposits are visible
foreach ( $deposit as $key => $value ) {
if ( $c > $key ) {
$query = 'SELECT SUM(IF(payment_type="check", amount, 0)) AS "check",