Commit 2d874ba4 authored by Mike Hibler's avatar Mike Hibler

Fix nit from daily PHP error report.

parent b56bdb71
<?php <?php
# #
# Copyright (c) 2000-2007 University of Utah and the Flux Group. # Copyright (c) 2000-2013 University of Utah and the Flux Group.
# #
# {{{EMULAB-LICENSE # {{{EMULAB-LICENSE
# #
...@@ -84,7 +84,8 @@ $del_command_string = ""; ...@@ -84,7 +84,8 @@ $del_command_string = "";
# different than the current value before adding them to the command string. # different than the current value before adding them to the command string.
if (isset($_modattrs)) { if (isset($_modattrs)) {
foreach ($_modattrs as $attrkey => $attrval) { foreach ($_modattrs as $attrkey => $attrval) {
if ($cur_node_attrs[$attrkey] != $attrval) { if (!array_key_exists($attrkey, $cur_node_attrs) ||
$cur_node_attrs[$attrkey] != $attrval) {
$mod_command_string .= "$attrkey='$attrval' "; $mod_command_string .= "$attrkey='$attrval' ";
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment