Skip to content

Commit

Permalink
fix copy-paste bugs in some ophandlers
Browse files Browse the repository at this point in the history
updateFile: fix PHP notice for undefined variable
updIPv4RSP: vsconfig was lost when saving
  • Loading branch information
andriyanov committed Feb 18, 2014
1 parent 6574248 commit f30ba5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wwwroot/inc/ophandlers.php
Original file line number Diff line number Diff line change
Expand Up @@ -3443,8 +3443,7 @@ function updateFile ()
(
'File',
array ('name' => $file_name, 'type' => $file_type, 'comment' => $file_comment),
array ('id' => $file_id),
array_key_exists ('conjunction', $opspec) ? $opspec['conjunction'] : 'AND'
array ('id' => $file_id)
);
rebuildTagChainForEntity ('file', $file_id, buildTagChainFromIds ($taglist), TRUE);
showFuncMessage (__FUNCTION__, 'OK', array ($file_name));
Expand Down Expand Up @@ -3497,7 +3496,7 @@ function updIPv4RSP ()
usePreparedUpdateBlade
(
"IPv4RSPool",
array ('name' => $name, 'vsconfig' => $comment, 'rsconfig' => $vsconfig),
array ('name' => $name, 'vsconfig' => $vsconfig, 'rsconfig' => $rsconfig),
array ('id' => $rspool_id)
);
rebuildTagChainForEntity ('ipv4rspool', $rspool_id, buildTagChainFromIds ($taglist), TRUE);
Expand Down

0 comments on commit f30ba5c

Please sign in to comment.