Completed
Pull Request — master (#732)
by
unknown
11:55
created
includes/admin/customers/customers.php 1 patch
Braces   +25 added lines, -10 removed lines patch added patch discarded remove patch
@@ -259,8 +259,11 @@  discard block
 block discarded – undo
259 259
 								<span class="customer-user-id info-item editable">
260 260
 									<?php if ( intval( $customer->user_id ) > 0 ) : ?>
261 261
 										<span data-key="user_id"><?php echo $customer->user_id; ?></span>
262
-									<?php else : ?>
263
-										<span data-key="user_id"><?php _e( 'None', 'give' ); ?></span>
262
+									<?php else {
263
+	: ?>
264
+										<span data-key="user_id"><?php _e( 'None', 'give' );
265
+}
266
+?></span>
264 267
 									<?php endif; ?>
265 268
 									<?php if ( current_user_can( $customer_edit_role ) && intval( $customer->user_id ) > 0 ) : ?>
266 269
 										<span class="disconnect-user"> - <a id="disconnect-customer" href="#disconnect" title="<?php _e( 'Disconnects the current user ID from this customer record', 'give' ); ?>"><?php _e( 'Disconnect User', 'give' ); ?></a></span>
@@ -329,8 +332,11 @@  discard block
 block discarded – undo
329 332
 													}
330 333
 													?>
331 334
 												</select>
332
-											<?php else : ?>
333
-												<input type="text" size="6" data-key="state" name="customerinfo[state]" id="card_state" class="card_state give-input info-item" placeholder="<?php _e( 'State / Province', 'give' ); ?>" />
335
+											<?php else {
336
+	: ?>
337
+												<input type="text" size="6" data-key="state" name="customerinfo[state]" id="card_state" class="card_state give-input info-item" placeholder="<?php _e( 'State / Province', 'give' );
338
+}
339
+?>" />
334 340
 											<?php endif; ?>
335 341
 											<input class="info-item" type="text" data-key="zip" name="customerinfo[zip]" placeholder="<?php _e( 'Postal', 'give' ); ?>" value="<?php echo $address['zip']; ?>" />
336 342
 													</span>
@@ -420,9 +426,12 @@  discard block
 block discarded – undo
420 426
 						</td>
421 427
 					</tr>
422 428
 				<?php endforeach; ?>
423
-			<?php else: ?>
429
+			<?php else {
430
+	: ?>
424 431
 				<tr>
425
-					<td colspan="5"><?php _e( 'No Donations Found', 'give' ); ?></td>
432
+					<td colspan="5"><?php _e( 'No Donations Found', 'give' );
433
+}
434
+?></td>
426 435
 				</tr>
427 436
 			<?php endif; ?>
428 437
 			</tbody>
@@ -451,9 +460,12 @@  discard block
 block discarded – undo
451 460
 						</td>
452 461
 					</tr>
453 462
 				<?php endforeach; ?>
454
-			<?php else: ?>
463
+			<?php else {
464
+	: ?>
455 465
 				<tr>
456
-					<td colspan="2"><?php _e( 'No Completed Donations Found', 'give' ); ?></td>
466
+					<td colspan="2"><?php _e( 'No Completed Donations Found', 'give' );
467
+}
468
+?></td>
457 469
 				</tr>
458 470
 			<?php endif; ?>
459 471
 			</tbody>
@@ -527,9 +539,12 @@  discard block
 block discarded – undo
527 539
 					</span>
528 540
 					</div>
529 541
 				<?php endforeach; ?>
530
-			<?php else: ?>
542
+			<?php else {
543
+	: ?>
531 544
 				<div class="give-no-customer-notes">
532
-					<?php _e( 'No Donor Notes', 'give' ); ?>
545
+					<?php _e( 'No Donor Notes', 'give' );
546
+}
547
+?>
533 548
 				</div>
534 549
 			<?php endif; ?>
535 550
 		</div>
Please login to merge, or discard this patch.