projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add noisy deprecation warning to Contribution.transact
[civicrm-core.git]
/
bin
/
cli.class.php
diff --git
a/bin/cli.class.php
b/bin/cli.class.php
index aa609d30807205321e430b329d4f2fd56a87a7e2..dff79069f40ae90664f266ecd761f7a2231985cf 100644
(file)
--- a/
bin/cli.class.php
+++ b/
bin/cli.class.php
@@
-146,7
+146,7
@@
class civicrm_cli {
// of this script
array_shift($args);
// of this script
array_shift($args);
-
while (list($k, $arg) = each($args)
) {
+
foreach ($args as $k => $arg
) {
// sanitize all user input
$arg = $this->_sanitize($arg);
// sanitize all user input
$arg = $this->_sanitize($arg);
@@
-294,8
+294,7
@@
class civicrm_cli {
* @return bool
*/
private function _validateOptions() {
* @return bool
*/
private function _validateOptions() {
- $required = $this->_required_arguments;
- while (list(, $var) = each($required)) {
+ foreach ($this->_required_arguments as $var) {
$index = '_' . $var;
if (empty($this->$index)) {
$missing_arg = '--' . $var;
$index = '_' . $var;
if (empty($this->$index)) {
$missing_arg = '--' . $var;