From d98a08374f14b7a5b46379877fa499b13c94db13 Mon Sep 17 00:00:00 2001 From: Remi Collet <fedora@famillecollet.com> Date: Tue, 17 Jan 2017 07:13:36 +0100 Subject: Wizard: fix test --- wizard/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wizard/index.php') diff --git a/wizard/index.php b/wizard/index.php index 0c99e08f..f1687172 100644 --- a/wizard/index.php +++ b/wizard/index.php @@ -217,7 +217,7 @@ if ($php && $os && $type && !$err) { printf("<pre> $yum install php-xxx</pre>"); printf("</li><br />"); - if ($ver >= 7) { + if (version_compare($php, '7.0', '>=')) { printf("<li>Command to install <b>testing</b> packages:"); printf("<pre> $yum --enablerepo=%s-test install php-xxx</pre>", $phpvers[$php]); printf("</li><br />"); -- cgit