We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dd85aa commit 4feb29bCopy full SHA for 4feb29b
1 file changed
application/forms/SourceForm.php
@@ -173,16 +173,14 @@ public function editSource(): void
173
{
174
$source = $this->getValues();
175
176
- if (empty(array_diff_assoc($source, $this->fetchDbValues()))) {
177
- return;
178
- }
179
-
180
/** @var ?string $listenerPassword */
181
$listenerPassword = $this->getValue('listener_password');
182
if ($listenerPassword) {
183
// Not using PASSWORD_DEFAULT, as the used algorithm should
184
// be kept in sync with what the daemon understands
185
$source['listener_password_hash'] = password_hash($listenerPassword, self::HASH_ALGORITHM);
+ } elseif (empty(array_diff_assoc($source, $this->fetchDbValues()))) {
+ return;
186
}
187
188
$source['changed_at'] = (int) (new DateTime())->format("Uv");
0 commit comments