aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ws.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ws.php b/ws.php
index 124e531f0..2d8a4a35a 100644
--- a/ws.php
+++ b/ws.php
@@ -80,7 +80,7 @@ function ws_addDefaultMethods( $arr )
$service->addMethod('pwg.images.addComment', 'ws_images_addComment',
array(
'image_id' => array(),
- 'author' => array( 'default' => $user['is_the_guest']? 'guest':$user['username']),
+ 'author' => array( 'default' => is_a_guest()? 'guest':$user['username']),
'content' => array(),
'key' => array(),
),