From aeb66b5b37d489a8e655ef15685aff3db046a4bc Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 5 Jan 2017 12:33:56 +1100 Subject: [PATCH] Default equation solutions to 0 --- includes/sp-core-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index ce378ca0..832d01c3 100644 --- a/includes/sp-core-functions.php +++ b/includes/sp-core-functions.php @@ -1146,7 +1146,7 @@ if ( !function_exists( 'sp_get_eos_safe_slug' ) ) { } if ( !function_exists( 'sp_solve' ) ) { - function sp_solve( $equation, $vars, $precision = 0, $default = '-' ) { + function sp_solve( $equation, $vars, $precision = 0, $default = 0 ) { if ( $equation == null ) return $default;