com web/qa: Avoid bunch of warnings.. its an optional argument defaulting to empty array :): include/functions.php

From: Date: Fri, 21 Mar 2014 20:30:30 +0000
Subject: com web/qa: Avoid bunch of warnings.. its an optional argument defaulting to empty array :): include/functions.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-67260@lists.php.net to get a copy of this message
Commit: 9ad92a595ac6f94f44a6d4255fb66d122544149f Author: Hannes Magnusson <bjori@mongodb.com> Fri, 21 Mar 2014 13:30:30 -0700 Parents: d754dbe23fddfe553f13c268468ad834106ee7d2 Branches: master Link: http://git.php.net/?p=web/qa.git;a=commitdiff;h=9ad92a595ac6f94f44a6d4255fb66d122544149f Log: Avoid bunch of warnings.. its an optional argument defaulting to empty array :) Changed paths: M include/functions.php Diff: diff --git a/include/functions.php b/include/functions.php index 2a71dbf..05168bb 100644 --- a/include/functions.php +++ b/include/functions.php @@ -25,7 +25,7 @@ function common_header($extra_headers=NULL) { echo '<section class="fullscreen">'; } -function common_footer($JS) { +function common_footer($JS = array()) { echo "</section>"; include __DIR__ . "/../shared/templates/footer.inc"; }

« previous php.qa (#67260) next »