Changeset 0afcc39404e521682a7c5c31d3e230faf192814e
- Timestamp:
- 11/01/11 12:42:50 (7 months ago)
- Author:
- Xemle <xemle@phtagr.org>
- Children:
- d707bdc85b777800764971ac7ca09e9f54571598
- Parents:
- e7234c1259e67fbdaae43224343ef0f925519124
- git-committer:
- Xemle <xemle@phtagr.org> / 2011-11-01T12:42:50Z+0100
- Message:
-
Fix edit of location
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3ee918f
|
r0afcc39
|
|
| 83 | 83 | function editMetaSingle(&$media, &$data) { |
| 84 | 84 | $ids = array(); |
| | 85 | $changed = false; |
| 85 | 86 | foreach ($this->types as $type => $locationName) { |
| 86 | 87 | if ($type == LOCATION_ANY || !isset($data['Location'][$locationName])) { |
| 87 | 88 | continue; |
| 88 | 89 | } |
| | 90 | $changed = true; |
| 89 | 91 | $name = trim($data['Location'][$locationName]); |
| 90 | 92 | if (!$name || $name == '-') { |
| … |
… |
|
| 104 | 106 | } |
| 105 | 107 | } |
| | 108 | if (!$changed) { |
| | 109 | return false; |
| | 110 | } |
| 106 | 111 | $ids = array_unique($ids); |
| 107 | 112 | $oldIds = Set::extract('/Location/id', $media); |