diff --git a/convert.php b/convert.php index e5edcca..7605fa2 100644 --- a/convert.php +++ b/convert.php @@ -13,4 +13,11 @@ } else { echo $amount; } -?> \ No newline at end of file +?> +// If Same Currency Checker - returns $from +if (is_numeric($converted_amount)) { + echo $converted_amount; + } else { + echo $amount; + } +?>