com web/master: Fix access to $argv[2]: scripts/update-user-notes
| From: | Martin Jansen | Date: | Mon, 01 Jun 2020 08:32:33 +0000 |
| Subject: | com web/master: Fix access to $argv[2]: scripts/update-user-notes | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-28656@lists.php.net to get a copy of this message | ||
Commit: f0ad7ed7515d5822f840661d97907717a4c9a92f
Author: Martin Jansen <martin@divbyzero.net> Mon, 1 Jun 2020 10:32:33 +0200
Parents: e471466e32ba7882ab08038de14a300deb8d1a8b
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=f0ad7ed7515d5822f840661d97907717a4c9a92f
Log:
Fix access to $argv[2]
Changed paths:
M scripts/update-user-notes
Diff:
diff --git a/scripts/update-user-notes b/scripts/update-user-notes
index 09a3bb7..5d46694 100755
--- a/scripts/update-user-notes
+++ b/scripts/update-user-notes
@@ -18,7 +18,7 @@ $root = $argv[1];
if (substr($root,-1) != '/') {
$root = "$root/";
}
-$since = $argv[2];
+$since = ($argc == 3 ? $argv[2] : "");
$SSL_fopen = false;
if(in_array('https', stream_get_wrappers())) {