aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/phpdiff.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/phpdiff.php b/scripts/phpdiff.php
index 0b486cb2..476d6454 100644
--- a/scripts/phpdiff.php
+++ b/scripts/phpdiff.php
@@ -1,7 +1,7 @@
<?php if (!defined('PmWiki')) exit();
/*
Copyright 2003,2004 Nils Knappmeier (nk@knappi.org)
- Copyright 2004-2021 Patrick R. Michaud (pmichaud@pobox.com)
+ Copyright 2004-2024 Patrick R. Michaud (pmichaud@pobox.com)
This file is part of PmWiki; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -22,7 +22,7 @@
## PHPDiff returns the differences between $old and $new, formatted
## in the standard diff(1) output format.
-function PHPDiff($old, $new)
+function PHPDiff($old = '', $new = '')
{
StopWatch("PHPDiff: begin");
# split the source text into arrays of lines