Skip to content

Commit

Permalink
fix add admin
Browse files Browse the repository at this point in the history
  • Loading branch information
vuthao committed Jan 22, 2014
1 parent 9dd47fa commit 37faf11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/authors/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
if( $count ) die( $lang_module['add_error_exist'] );

$sql = 'SELECT userid, username, active FROM ' . $db_config['dbsystem'] . '.' . NV_USERS_GLOBALTABLE . ' WHERE userid=' . $userid;
list( $userid, $username, $active ) = $db->query( $result )->fetch( 3 );
list( $userid, $username, $active ) = $db->query( $sql )->fetch( 3 );

if( empty( $userid ) ) die( $lang_module['add_error_notexist'] );
if( empty( $position ) ) die( $lang_module['position_incorrect'] );
Expand Down

0 comments on commit 37faf11

Please sign in to comment.