Default equation solutions to 0

This commit is contained in:
Brian Miyaji
2017-01-05 12:33:56 +11:00
parent 63af04f655
commit aeb66b5b37

View File

@@ -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;