Default equation solutions to 0
This commit is contained in:
@@ -1146,7 +1146,7 @@ if ( !function_exists( 'sp_get_eos_safe_slug' ) ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( !function_exists( 'sp_solve' ) ) {
|
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 )
|
if ( $equation == null )
|
||||||
return $default;
|
return $default;
|
||||||
|
|||||||
Reference in New Issue
Block a user