Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82df91d3 authored by theronakpatel's avatar theronakpatel
Browse files

php fix

parent d0ca8a5d
Loading
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -227,11 +227,10 @@ class AccountController extends Controller {
	 */
	private function validateInput(string $inputName, string $value, ?int $maxLength = null) : ?string {
		if ($value === '') {
			return ucwords($inputName)." is required.";
			return ucfirst(strtolower($inputName))." is required.";
		}
	
		if ($maxLength !== null && strlen($value) > $maxLength) {
			return ucwords($inputName)." is too large.";
			return ucfirst(strtolower($inputName))." is too large.";
		}
	
		return null; // Validation passed
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

Loading