Skip to content

Commit 26b0ac1

Browse files
alikonwilsonge
authored andcommitted
[4.0] Use the new hasField() (#21496)
* [4.0] Use the new hasField() * use hasField() * use the new hasField() * use the new hasField() * use hasField() * oops
1 parent ecbc576 commit 26b0ac1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

administrator/components/com_banners/Table/ClientTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function publish($pks = null, $state = 1, $userId = 0)
8080
$where = $k . '=' . implode(' OR ' . $k . '=', $pks);
8181

8282
// Determine if there is checkin support for the table.
83-
if (!property_exists($this, 'checked_out') || !property_exists($this, 'checked_out_time'))
83+
if (!$this->hasField('checked_out') || !$this->hasField('checked_out_time'))
8484
{
8585
$checkin = '';
8686
}

administrator/components/com_finder/Controller/FilterController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function save($key = null, $urlVar = null)
4343
$model = $this->getModel();
4444
$table = $model->getTable();
4545
$data = $input->post->get('jform', array(), 'array');
46-
$checkin = property_exists($table, 'checked_out');
46+
$checkin = $table->hasField('checked_out');
4747
$context = "$this->option.edit.$this->context";
4848
$task = $this->getTask();
4949

administrator/components/com_finder/Table/FilterTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function publish($pks = null, $state = 1, $userId = 0)
160160
$where = $k . '=' . implode(' OR ' . $k . '=', $pks);
161161

162162
// Determine if there is checkin support for the table.
163-
if (!property_exists($this, 'checked_out') || !property_exists($this, 'checked_out_time'))
163+
if (!$this->hasField('checked_out') || !$this->hasField('checked_out_time'))
164164
{
165165
$checkin = '';
166166
}

administrator/components/com_templates/Controller/StyleController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function save($key = null, $urlVar = null)
5555
$model = $this->getModel('Style', 'Administrator');
5656
$table = $model->getTable();
5757
$data = $this->input->post->get('params', array(), 'array');
58-
$checkin = property_exists($table, 'checked_out');
58+
$checkin = $table->hasField('checked_out');
5959
$context = $this->option . '.edit.' . $this->context;
6060

6161
$item = $model->getItem($app->getTemplate(true)->id);

administrator/components/com_users/Table/NoteTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function publish($pks = null, $state = 1, $userId = 0)
120120
$query->where($k . '=' . implode(' OR ' . $k . '=', $pks));
121121

122122
// Determine if there is checkin support for the table.
123-
if (!property_exists($this, 'checked_out') || !property_exists($this, 'checked_out_time'))
123+
if (!$this->hasField('checked_out') || !$this->hasField('checked_out_time'))
124124
{
125125
$checkin = false;
126126
}

0 commit comments

Comments
 (0)