mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed PHP warning Undefined offset: 1 in upgrade.php
This commit is contained in:
parent
eea65a3f26
commit
10bc35d604
|
@ -13,7 +13,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
|||
}
|
||||
|
||||
|
||||
($argv[1]) ? $branch = $argv[1] : $branch = 'master';
|
||||
((array_key_exists('1',$argv[1]))) ? $branch = $argv[1] : $branch = 'master';
|
||||
|
||||
echo "Welcome to the Snipe-IT upgrader.\n\n";
|
||||
echo "Please note that this script will not download the latest Snipe-IT \n";
|
||||
|
|
Loading…
Reference in a new issue