OSDN Git Service
(root)
/
nucleus-jp
/
nucleus-next.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbdb9cb
)
FIX: createaccount成功時にエラーメッセージとして1が出力されるバグの修正
author
sakamocchi
<o-takashi@sakamocchi.jp>
Thu, 17 May 2012 05:06:03 +0000
(14:06 +0900)
committer
sakamocchi
<o-takashi@sakamocchi.jp>
Thu, 17 May 2012 05:06:03 +0000
(14:06 +0900)
Action::createAccount()の値をそのままAdmin::$headMessに代入していたため。一時的な変数$messageを追加しそれを評価するようにした。
nucleus/libs/ADMIN.php
patch
|
blob
|
history
diff --git
a/nucleus/libs/ADMIN.php
b/nucleus/libs/ADMIN.php
index
49c907a
..
9149b36
100644
(file)
--- a/
nucleus/libs/ADMIN.php
+++ b/
nucleus/libs/ADMIN.php
@@
-752,9
+752,10
@@
class Admin
if ( array_key_exists('showform', $_POST) && $_POST['showform'] == 1 )
\r
{
\r
$action = new Action();
\r
-
self::$headMess
= $action->createAccount();
\r
- if (
self::$headMess
=== 1 )
\r
+
$message
= $action->createAccount();
\r
+ if (
$message
=== 1 )
\r
{
\r
+ self::$headMess = $message;
\r
self::$skin->parse('createaccountsuccess');
\r
return;
\r
}
\r