tiny-slitaz rev 15

Do not configure suggested packages twice
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 14 23:24:47 2016 +0200 (2016-07-14)
parents d076e7a5f3ae
children 080c97de1a5d
files step4.php
line diff
     1.1 --- a/step4.php	Mon Feb 15 22:04:29 2016 +0100
     1.2 +++ b/step4.php	Thu Jul 14 23:24:47 2016 +0200
     1.3 @@ -19,7 +19,8 @@
     1.4  
     1.5  if (isset($_POST['suggested'])) {
     1.6  	foreach ($_POST['suggested'] as $pkg) {
     1.7 -		$_POST['toconfigure'] .= " ".$pkg;
     1.8 +		if (!strstr(" ".$_POST['toconfigure']." ", " ".$pkg." "))
     1.9 +			$_POST['toconfigure'] .= " ".$pkg;
    1.10  	}
    1.11  	unset($_POST['suggested']);
    1.12  }