warning: array_shift() [function.array-shift]:
marcus178 - October 26, 2009 - 11:50
| Project: | AJAX Comments |
| Version: | 6.x-1.8 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
If I have the following setting for comments:
Form below comments and optional preview
I get this error
warning: array_shift() [function.array-shift]: The argument should be an array in /sites/all/modules/ajax_comments/ajax_comments.module on line 119.
If I make preview required this error does not occur, but the Save and Preview button are not displayed properly
<span class="button-wrapper">
<span class="button">
<span>
<input id="ajax-comments-preview" class="form-submit ahah-processed" type="submit" value="Preview" name="op"/>
<input id="ajax-comments-submit" class="form-submit ahah-processed" type="submit" value="Save" name="op"/>
</span>
</span>
</span>when it should be
<span class="button-wrapper">
<span class="button">
<span>
<input id="ajax-comments-preview" class="form-submit ahah-processed" type="submit" value="Preview" name="op"/>
</span>
</span>
</span>
<span class="button-wrapper">
<span class="button">
<span>
<input id="ajax-comments-submit" class="form-submit ahah-processed" type="submit" value="Save" name="op"/>
</span>
</span>
</span>